package com.test.common.vo;

import lombok.Data;

/**
 * @Description 异常类
 * @Author Mr.Li
 * @Date 2020/3/10 15:07
 */
@Data
public class ExceptionResult {

    private int status;// 状态码
    private String message;// 提示信息
    private Long timestamp;// 时间戳

    public ExceptionResult(ExceptionEnum em) {
        this.status = em.getStatus();
        this.message = em.getMessage();
        this.timestamp = System.currentTimeMillis();
    }
}
